/**
 * @version 2007-4-3
 * @author xalinx at gmail dot com
 */
package org.nanhill.wafer.client.hibernate;

import java.util.Properties;

import org.hibernate.cache.Cache;
import org.hibernate.cache.CacheException;
import org.hibernate.cache.CacheProvider;
import org.hibernate.cache.Timestamper;

/**
 * @version 2007-4-3
 * @author xalinx at gmail dot com
 *
 */
 public class WaferProvider implements CacheProvider {  
	     public Cache buildCache(String name, Properties properties) throws CacheException {  
	         return new WaferCache(name);  
	     }  
	   
	     public boolean isMinimalPutsEnabledByDefault() {  
	         return false;  
	     }  
	   
	     public long nextTimestamp() {  
	         return Timestamper.next();  
	     }  
	   
	     public void start(Properties properties) throws CacheException {  
	     }  
	   
	     public void stop() {  
	     }  
	   
	 }
